﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 公式信息表
    /// </summary>
    [Table("T_Publicity")]
    public class Publicity:BaseEntity
    {
        /// <summary>
        /// 公示标题
        /// </summary>
        [Required,Column(TypeName ="varchar"),StringLength(100)]
        public string PublicityName { get; set; }
        /// <summary>
        /// 公示信息
        /// </summary>
        [Required, Column(TypeName = "varchar(max)")]
        public string PublicityArticle { get; set; }
        /// <summary>
        /// 发布状态
        /// </summary>
        [Required]
        public bool ReleaseStatus { get; set; } = false;

    }
}
